//
//  YDYWebViewController.m
//  DYSisterAPP
//
//  Created by 杨德勇 on 16/8/1.
//  Copyright © 2016年 杨德勇. All rights reserved.
//

#import "YDYWebViewController.h"

@interface YDYWebViewController ()<UIWebViewDelegate>
@property (weak, nonatomic) IBOutlet UIWebView *webView;
@property (weak, nonatomic) IBOutlet UIBarButtonItem *replyBtn;

@end

@implementation YDYWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.url]]];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)replayClick:(UIBarButtonItem *)sender {
    [self.webView goBack];
   
}
- (IBAction)bookMarkClick:(id)sender {
}
- (IBAction)refreshClick:(id)sender {
    [self.webView reload];
}


#pragma mark -
#pragma mark -webviewDelegate
-(void)webViewDidFinishLoad:(UIWebView *)webView{
    self.replyBtn.enabled = [webView canGoBack];
}
@end
